package com.dream.service;

import com.dream.pojo.User;

import java.util.List;

public interface UserService {
    User login(User user);
    int add(User user);

    long totalCount(String userName);

    List<User> list(String userName, long pageIndex, long pageSize);

    User findById(String userId);

    int update(User user);

    int deleteById(String userId);
}
